<div class="featured">
    <div class="top-news-hot">
    <?php
    //khối tin hot
    foreach($list_hot as $key=>$news_hot) {
        if($key == 0) {
            ?>
            <div class="top-news-item-1">
                <div class="img">
                    <a href="<?=generate_detail_url($news_hot)?>">
                        <img src="<?=$news_hot['new_picture']?>" alt="<?=$news_hot['new_title']?>" />
                    </a>
                </div>
                <div class="cont">
                    <a href="<?=generate_detail_url($news_hot)?>">
                        <h2><?=$news_hot['new_title']?></h2>
                    </a>
                    <p><?=$news_hot['new_teaser'] != '' ? cut_string(removeHTML($news_hot['new_teaser']),150) : cut_string(removeHTML($news_hot['new_detail']),150)?></p>
                    <ul>
                    <?php
                    $relate = news_relate($news_hot,3);                
                    for($i = 0; $i < 3; $i++) {
                        if(isset($relate[$i])) {
                            ?>
                            <li><a href="<?=generate_detail_url($relate[$i]);?>"><h3><?=$relate[$i]['new_title']?></h3></a></li>
                            <?
                        }
                    }
                    ?>
                    </ul>
                </div>
            </div><!-- End top-news-item-1 -->
            <?
        }else {
            ?>
            <div class="top-news-item-2">
                <div class="img">
                    <a href="<?=generate_detail_url($news_hot)?>">
                        <img src="<?=$news_hot['new_picture']?>" alt="<?=$news_hot['new_title']?>" />
                    </a>
                </div>
                <a href="<?=generate_detail_url($news_hot)?>">
                    <h2><?=$news_hot['new_title']?></h2>
                </a>
            </div><!-- End top-news-item-2 -->
            <?
        }
    }
    ?>
    </div><!-- End top-news-hot -->
    <div class="top-news-view">
        <div class="top-news-view-tab">
            <h3>Tin đọc nhiều</h3>
        </div>
        <div class="top-news-view-main">
            <ul>
            <?php
            foreach($list_view as $news_view) {
                ?>
                <li><a href="<?=generate_detail_url($news_view)?>">
                    <h2><?=$news_view['new_title']?></h2>
                </a></li>
                <?
            }
            ?>
            </ul>
        </div>
    </div><!-- End top-news-view -->
    <div class="featured-adv">
        <img src="../themes/img/adv1.jpg" alt="quang cao" />
    </div><!-- End top-news -->
</div><!-- End featured -->